package com.firewolf.rabbitmq;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.firewolf.rabbitmq.service.MessageService;

public class Producer {
	public static void main(String[] args) {
		ApplicationContext context = new ClassPathXmlApplicationContext("spring-rabbitmq.xml");
		MessageService msgService = context.getBean(MessageService.class);
		msgService.sendMessage("Hello,Spring RabbitMQ");
	}
}
